<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#add{
				float:right
			}
		</style>
		<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$(".add").click(function(){
						let div = $("<div></div>")
						let file = $("<input type='file'>")
						let del=$('<button type="button" class="del">删除</button>')
						$(document).on("click",".del",fun)//给整个网页文档,做动态绑定
						div.append(file)
						div.append(del)
						$(".con").append(div)
					})
				})
			function fun(){
				
			}
		</script>
	</head>
	<body>
		请选择你要上传的文件：
		<br>
		<div>
			<input type="file"> 
			<button type="button" class="add">增加</button>
		</div>
		<br>
		<div class="con"></div>
	</body>
</html>
